//
//  ShopCarTableViewCell.h
//  Mall
//
//  Created by 孙飞燕 on 16/10/11.
//  Copyright © 2016年 孙飞燕. All rights reserved.
//

#import <UIKit/UIKit.h>
@class GoodsModel;
@class ShopCarTableViewCell;
@protocol ShopCarTableViewCellDelagate <NSObject>

//cell选中的代理方法
- (void)shopCarTableViewCellDelegate:(ShopCarTableViewCell *)cell withSelectButton:(UIButton *)selectBtn;

@end
@interface ShopCarTableViewCell : UITableViewCell
- (IBAction)selectBtn:(id)sender;

@property (weak, nonatomic) IBOutlet UIButton *selectBtn;

@property (nonatomic,assign)BOOL selectState; //是否选中状态
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *goodsImage;

@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *goodsCount;
- (void)addTheValue:(GoodsModel *)model;

@property (nonatomic,assign)id<ShopCarTableViewCellDelagate>delegate;
@end
